﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ForgetPassword.aspx.cs" Inherits="BookManageSys.User.ForgetPassword" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>忘记密码</title>

    <link href="../assert/Css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
       <div class="container mt-5">
            <div class="row justify-content-center">
                <div class="col-md-6">
                    <div class="card">
                        <div class="card-body text-center">
                            <h2>用户注册</h2>
                            <div class="form-group">
                                <label for="username">用户名：</label>
                                <asp:TextBox ID="TxtUsername" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtUsername" ErrorMessage="*" CssClass="validation-error"></asp:RequiredFieldValidator>
                            </div>
                            <div class="form-group">
                                <label for="password">新密码：</label>
                                <asp:TextBox ID="TxtPassword" runat="server" TextMode="Password" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtPassword" ErrorMessage="*" CssClass="validation-error"></asp:RequiredFieldValidator>
                            </div>
                            <div class="form-group">
                                <label for="repassword">确认密码：</label>
                                <asp:TextBox ID="TxtRepass" runat="server" TextMode="Password" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtRepass" ErrorMessage="*" CssClass="validation-error"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TxtPassword" ControlToValidate="TxtRepass" ErrorMessage="两次密码不一致！" CssClass="validation-error"></asp:CompareValidator>
                            </div>
                            <div class="form-group">
                                <label for="phone">电话：</label>
                                <asp:TextBox ID="TxtTelephone" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxtTelephone" ErrorMessage="*" CssClass="validation-error"></asp:RequiredFieldValidator>
                            </div>
                            <asp:Button ID="BtnRegister" runat="server" CssClass="btn btn-primary" Text="修改密码" OnClick="BtnRegister_Click" />
                            <p class="mt-3"><a href="../UserLogin.aspx" class="btn btn-secondary btn-block">返回</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
